package com.nervenets.web.controller.ad;

import com.nervenets.web.controller.TokenParams;
import com.nervenets.web.enumeration.AdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class AdEditParams extends TokenParams {
    @ApiModelProperty(value = "广告ID，不传为新建")
    private long adId;
    @ApiModelProperty(value = "广告类型", required = true)
    @NotNull(message = "不能为空")
    private AdType adType;
    @ApiModelProperty(value = "广告标题", required = true)
    @NotNull(message = "不能为空")
    private String title;
    @ApiModelProperty(value = "广告图片", required = true)
    @NotNull(message = "不能为空")
    private String picture;
    @ApiModelProperty(value = "广告跳转链接，可选")
    private String url;
    @ApiModelProperty(value = "广告排序，值越大越靠前")
    private int queue;
    @ApiModelProperty(value = "是否启用")
    private boolean enable;
}
